package cn.cumulomq.entity;

import java.util.List;

public class Page<T> {
	private int pageNO=1;
	private int pageSize=10;
	private long recordCount=0;
	private int pageCount=1;
	private List<T> list ;
	
	public int getPageNO() {
		return pageNO;
	}
	public void setPageNO(int pageNO) {
		this.pageNO = pageNO;
	}
	public int getPageSize() {
		return pageSize;
	}
	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}
	public long getRecordCount() {
		return recordCount;
	}
	public void setRecordCount(long recordCount) {
		if(pageSize>0)pageCount = (int) Math.ceil(recordCount/1.0/pageSize);
		this.recordCount = recordCount;
	}
	public List<T> getList() {
		return list;
	}
	public void setList(List<T> list) {
		this.list = list;
	}
	public int getPageCount() {
		return pageCount;
	}
}
